package com.example.designer.strategy;

import com.example.designer.strategy.inter.Call;
import com.example.designer.strategy.inter.Fly;

public class Duck {
    private Fly fly;
    private Call call;

    public Duck(Fly fly, Call call) {
        this.fly = fly;
        this.call = call;
    }

    public void duck() {
        fly.fly();
        call.call();
    }
}
